



public static boolean  isNnm(String str) {
	//201521123012
	String patternString="^?\\d+$";
	return pattern.matches(patternString,str);
}
	
	
	
	
	Pattern pattern=Pattern.compile("[0-9]*");
	Matcher isNUM=pattern.matcher(str);
	if(!isNum.matches())
	{
		return flase;
	}
	return ture;

System.out.println(check())